﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SIMA.Core.Data.Access;
using SIMA.Core.Data.Collection;
using SIMA.Core.Enums;

namespace SIMA.Client.Auxiliars.MVVM
{
    public class AdminMarcaMvvm//:AccessClass<T_C_Marca>
    {
        //#region Fields

        //private List<T_C_Marca> marcas;
        //private List<T_C_Estado> estados;
        //private SmartContainer<T_C_Marca> marcasSmart;
        //private SmartContainer<T_C_Estado> estadosSmart;
        //private FilterType filtro;

        //#endregion

        //#region Properties

        //public List<T_C_Marca> Marcas
        //{
        //    get
        //    {
        //        return marcas;
        //    }
        //    set
        //    {
        //        marcas = value;
        //        this.RaisePropertyChanged("Marcas");
        //    }
        //}

        //public List<T_C_Estado> Estados
        //{
        //    get
        //    {
        //        return estados;
        //    }
        //    set
        //    {
        //        estados = value;
        //        this.RaisePropertyChanged("Estados");
        //    }
        //}

        //public FilterType Filtro
        //{
        //    get
        //    {
        //        return filtro;
        //    }
        //    set
        //    {
        //        filtro = value;
        //        this.RaisePropertyChanged("Filtro");
        //    }
        //}

        //#endregion

        //#region Private Methods

        //private void Init()
        //{
        //    marcasSmart = new SmartContainer<T_C_Marca>();
        //    marcasSmart.Inserted += new EventHandler<SIMA.Core.EventArgs.InsertedEventArgs>(marcasSmart_Inserted);
        //    marcasSmart.Deleted += new EventHandler<SIMA.Core.EventArgs.DeletedEventArgs>(marcasSmart_Deleted);
        //    marcasSmart.CollectionChanged += new EventHandler(marcasSmart_CollectionChanged);
        //    marcasSmart.Updated += new EventHandler<SIMA.Core.EventArgs.UpdatedEventArgs>(marcasSmart_Updated);
        //    marcasSmart.Failed += new EventHandler<SIMA.Core.EventArgs.FailedEventArgs>(marcasSmart_Failed);
        //}

        //void marcasSmart_Failed(object sender, SIMA.Core.EventArgs.FailedEventArgs e)
        //{
            
        //}

        //void marcasSmart_Updated(object sender, SIMA.Core.EventArgs.UpdatedEventArgs e)
        //{
            
        //}

        //void marcasSmart_CollectionChanged(object sender, EventArgs e)
        //{
            
        //}

        //void marcasSmart_Deleted(object sender, SIMA.Core.EventArgs.DeletedEventArgs e)
        //{
            
        //}

        //private void marcasSmart_Inserted(object sender, SIMA.Core.EventArgs.InsertedEventArgs e)
        //{
            
        //}

        //#endregion

        //#region Public Methods

        //public override void Register(T_C_Marca item)
        //{

        //}

        //public override void Delete(T_C_Marca item)
        //{

        //}

        //public override void Update(T_C_Marca itemToUpdate, T_C_Marca itemUpdated)
        //{
            
        //}

        //public override void SelectAll()
        //{
            
        //}

        //public void SelectFromState(FilterType filter)
        //{
        //    switch (filter)
        //    {
        //        case FilterType.Active:
        //            Marcas = marcasSmart["", CommandType.StoredProcedure];
        //            break;
        //        case FilterType.Inactive:
        //            Marcas = marcasSmart["", CommandType.StoredProcedure];
        //            break;
        //    }
        //}

        //#endregion
    }
}
